package com.xdtech.forum.vo;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import com.xdtech.core.orm.utils.BeanUtils;
import com.xdtech.forum.model.LinkTag;
import com.xdtech.web.freemark.item.GridColumn;

/**
 * 
 * @author max.zheng
 * @create 2015-03-06 11:06:23
 * @since 1.0
 * @see
 */
public class LinkTagItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private Long id;
	@GridColumn(title="名称",width=100)
	private String name;
	@GridColumn(title="连接类型",width=100)
	private String type;
	@GridColumn(title="Url地址",width=100)
	private String linkUrl;
	@GridColumn(title="图片地址",width=100)
	private String iconUrl;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	
	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}
	public String getLinkUrl() {
		return linkUrl;
	}
	
	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}
	public String getIconUrl() {
		return iconUrl;
	}
	/**
	 * 根据model构建vo
	 * 
	 * @author <a href="max.zheng@zkteco.com">郑志雄</>
	 * @since 2015-3-6 下午3:08:13
	 * @param linkTag
	 * @return
	 */
	public static LinkTagItem createItem(LinkTag linkTag) {
		LinkTagItem linkTagItem = new LinkTagItem();
		BeanUtils.copyProperties(linkTagItem, linkTag);
		return linkTagItem;
	}
}
